[14.0][IMP] connector_extension: add user_id field and work_on override#871
Merged
[14.0][IMP] connector_extension: add user_id field and work_on override#871
Conversation
Add optional user_id field on the backend to define a default user for all operations. Override work_on to switch to this user before creating the WorkContext, ensuring all components, record creation, and child jobs run under the configured user context. This prevents records from being created under the session user when imports are triggered manually from the backend form.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 14.0 #871 +/- ##
==========================================
- Coverage 50.53% 50.53% -0.01%
==========================================
Files 979 979
Lines 16685 16693 +8
Branches 3558 3559 +1
==========================================
+ Hits 8432 8436 +4
- Misses 8034 8039 +5
+ Partials 219 218 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
user_idfield on the connector backend to configure a default user for all sync operationswork_onto switch to this user before creating the WorkContext, ensuring all components, record creation, and child jobs (including delayed ones) run under the configured user contextTest plan
user_idon a backend, trigger import manually — verify records are created under the configured useruser_idempty — verify behavior is unchanged (records created under session user)user_idoverrides the cron's user